VertexHandle <Clone>$()

book_4_sparkGenerated
code_blocksInput

Description

The HalfEdgeMesh.VertexHandle.<Clone>$ method is a compiler-generated method that creates a copy of the current VertexHandle instance. This method is typically used internally by the compiler and is not intended to be called directly in user code.

Usage

Since <Clone>$ is a compiler-generated method, it is not intended for direct use in your code. Instead, you should use the public API provided by the HalfEdgeMesh.VertexHandle class to interact with vertex handles.

Example

// Example of using HalfEdgeMesh.VertexHandle

// Assuming you have a HalfEdgeMesh instance
HalfEdgeMesh mesh = new HalfEdgeMesh();

// Accessing a vertex handle
HalfEdgeMesh.VertexHandle vertexHandle = mesh.GetVertexHandle(0);

// Checking if the vertex handle is valid
if (vertexHandle.IsValid)
{
    // Do something with the valid vertex handle
    int index = vertexHandle.Index;
    HalfEdgeMesh.HalfEdgeHandle edge = vertexHandle.Edge;
}